package com.webshopping.tag;


import com.webshopping.entry.AttributeMetadata;

public class TextTag extends AbastractTag {

	@Override
	public String genetateTag(AttributeMetadata attrMd) {
		StringBuffer sb = new StringBuffer();
		sb.append(attrMd.getAttText()+"&nbsp;").append("<input type=\"text\" name=\"").append(attrMd.getAttribute())
				.append("\" validate=\"").append(attrMd.getValidateRules()).append("\" />");
		return sb.toString();
	}

}
